package com.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.entity.Product;
import com.entity.ProductBigCategory;

public interface ProductmDao {
	public List<Product> queryAllProduct(Map m) throws SQLException;
	public int queryCount() throws SQLException;
	public int delproById(String pid)throws SQLException;
	public int addProduct(Product p) throws SQLException;
	public int updatePro(Product p) throws SQLException;
	
	public Product findProById(String pid) throws SQLException;
	
	public List<Product> findproBycategory(Map m) throws SQLException;
	
	public int queryCountByCategory(String category) throws SQLException;
	
	//查询类别
	public List<ProductBigCategory> getBigCategory() throws SQLException;
}
